<?php #//AJAX PHP PENNY AUCTION v.1.3

#///////////////////////////////////////////////////////////
#//  COPYRIGHT 2009 Aaron Helmlinger ALL RIGHTS RESERVED  //
#///////////////////////////////////////////////////////////
                        include "../includes/config.inc.php";
             
                       include "loggedin.inc.php";
                 
                               
          if($_POST[update])  {

                               

       $live_auction_note1 = $_POST[live_auction_note];
                    $upcoming_auction_note1 = $_POST[upcoming_auction_note]; 
                    $closing_auction_note1 = $_POST[closing_auction_note]; 
                    $header_announcement1 = $_POST[header_announcement]; 
                    $helpdesk_info1 = $_POST[helpdesk_info]; 
                    $welcome_message1 = $_POST[welcome_message]; 
                    $facebook_url1 = $_POST[facebook_url]; 
                    $twitter_url1 = $_POST[twitter_url]; 
                    $youtube_url1 = $_POST[youtube_url];
                    $payment_gateway1 = $_POST[payment_gateway];
                    $footer_app1 = $_POST[footer_app];
                    $google_analytics1 = $_POST[google_analytics];           
                     $footer_copyright1 = $_POST[footer_copyright];
   
  $query2="UPDATE PHPAUCTIONXL_version_1_3 SET footer_copyright='$footer_copyright1' WHERE id='1'";
       
mysql_query($query2); 
                     
$query2="UPDATE PHPAUCTIONXL_version_1_3 SET live_auction_note='$live_auction_note1' WHERE id='1'";
       
mysql_query($query2);

$query2="UPDATE PHPAUCTIONXL_version_1_3 SET upcoming_auction_note='$upcoming_auction_note1' WHERE id='1'";
       
mysql_query($query2);


  $query2="UPDATE PHPAUCTIONXL_version_1_3 SET closing_auction_note='$closing_auction_note1' WHERE id='1'";
       
mysql_query($query2);

$query2="UPDATE PHPAUCTIONXL_version_1_3 SET header_announcement='$header_announcement1' WHERE id='1'";
       
mysql_query($query2);

$query2="UPDATE PHPAUCTIONXL_version_1_3 SET helpdesk_info='$helpdesk_info1' WHERE id='1'";
       
mysql_query($query2);


$query2="UPDATE PHPAUCTIONXL_version_1_3 SET welcome_message='$welcome_message1' WHERE id='1'";
       
mysql_query($query2);


   $query2="UPDATE PHPAUCTIONXL_version_1_3 SET payment_gateway='$payment_gateway1' WHERE id='1'";
       
mysql_query($query2);


     $query2="UPDATE PHPAUCTIONXL_version_1_3 SET footer_app='$footer_app1' WHERE id='1'";
       
mysql_query($query2);

  



       
         }     
       
         $query_settings = "select * from PHPAUCTIONXL_version_1_3 where id='1'";
                             $query_settings2 =  mysql_query ($query_settings);
                                $live_auction_note2 = ltrim(mysql_result($query_settings2,0,"live_auction_note"));
                               $closing_auction_note2  = ltrim(mysql_result($query_settings2,0,"closing_auction_note"));
                               $upcoming_auction_note2 = ltrim(mysql_result($query_settings2,0,"upcoming_auction_note"));
                                $header_announcement2 = ltrim(mysql_result($query_settings2,0,"header_announcement"));
                                $helpdesk_info2 = ltrim(mysql_result($query_settings2,0,"helpdesk_info"));
                                $welcome_message2 = ltrim(mysql_result($query_settings2,0,"welcome_message"));
                                $facebook_url2 = ltrim(mysql_result($query_settings2,0,"facebook_url"));
                                $twitter_url2 = ltrim(mysql_result($query_settings2,0,"twitter_url"));
                                $youtube_url2 = ltrim(mysql_result($query_settings2,0,"youtube_url"));
                               $payment_gateway2 = ltrim(mysql_result($query_settings2,0,"payment_gateway"));
                                $footer_app2 = ltrim(mysql_result($query_settings2,0,"footer_app"));
                                $google_analytics2 = ltrim(mysql_result($query_settings2,0,"google_analytics"));
                                 $footer_copyright2 = ltrim(mysql_result($query_settings2,0,"footer_copyright"));
      //$ERR = $MSG_AJAX_ADMIN_HOMEPAGE_CONTENT_ERROR;
  ?>
  






<HTML>
<HEAD>
<link rel='stylesheet' type='text/css' href='style.css' />
<link href="css/main.css" rel="stylesheet" type="text/css">
</HEAD>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">





<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td>
    
       <? // -------------------------- Admin Tool Heading --------------------------------------?>
       
       
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="titulo">
        <tr> 
     
          
          
   <td class="icono"><img src="images/graph_icon2.gif" width="30" height="26"></td>
                    <td class="breadcrumbs"><p><span><?=$MSG_25_0009?></span>&nbsp;&gt;&gt;&nbsp;<? print $MSG_AJAX_ADMIN_HOMEPAGE_CONTENT_TITLE; ?></p></td>
              </tr>
      </table>
      
      
      
      </td>
  </tr>
  <tr>
    <td align="center" valign="middle">&nbsp;</td>
  </tr>
    <tr> 
    <td align="center" valign="middle">
    
    
    
<TABLE BORDER=0 WIDTH=100% CELLPADDING=0 CELLSPACING=0 BGCOLOR="#FFFFFF">
<TR>
<TD align="center">
<BR>
<FORM NAME=conf ACTION=<?=basename($_SERVER['PHP_SELF'])?> METHOD=POST>


  <? // -------------------------- LIGHT BLUE TITLE BAR --------------------------------------?>

	<TABLE WIDTH="95%" BORDER="0" CELLSPACING="0" CELLPADDING="0"  class="base" ALIGN="CENTER" style="border:1px solid #ccc;">
		<TR>
			<TD ALIGN=CENTER class=title>
				<p><? print $MSG_AJAX_ADMIN_HOMEPAGE_CONTENT_TITLE; ?></p>
			</TD>
		</TR>
		
		
		
		<TR>
		<TD>
		
    
    
    <TABLE WIDTH=100% ALIGN="CENTER" CELLPADDING=0 cellspacing="0" BGCOLOR="#FFFFFF">
		
 <? // -------------------------- ERROR BAR --------------------------------------?>    
 
 <? if ($ERR) { ?>   
    	<TR>
				<TD COLSPAN="2"  class="error"><B>
					<p><BLINK><FONT size=+2><? print $ERR; ?> ALSO, Everytime You Save The Content, A Space Is Added To The Beginning Of Each Content Box, Be Sure To Not Let This Space Buildup Or It Will Begin To Delete Your Content.</font></BLINK>
					</p></B></TD>
			</TR>
	<? } ?>	
    
    	
			
			          			
			
 <? // -------------------------- WHITE BAR --------------------------------------?> 			
			  <TR>
      	<TD WIDTH="125"> 
				<p class="blue"><? print $MSG_AJAX_ADMIN_HOMEPAGE_CONTENT_LIVE_AUCTION_LABEL; ?></p>
					</TD>
				<TD WIDTH="405">
					<TEXTAREA NAME="live_auction_note" 
   ROWS="5" COLS="100">
              <? print $live_auction_note2; ?>
   </textarea><BR><? print $MSG_AJAX_ADMIN_HOMEPAGE_CONTENT_LIVE_AUCTION_NOTE; ?>
</TD>
			</TR>
			
		 <? // -------------------------- GREY BAR --------------------------------------?>	
			
			<TR>
				<TD WIDTH="125" class="gris">
					<p class="blue"><? print $MSG_AJAX_ADMIN_HOMEPAGE_CONTENT_UPCOMING_AUCTION_LABEL; ?></p>
					</TD>
				<TD WIDTH="405" class="gris">
						<TEXTAREA NAME="upcoming_auction_note" 
   ROWS="5" COLS="100">
              <? print $upcoming_auction_note2; ?>
   </textarea><BR><? print $MSG_AJAX_ADMIN_HOMEPAGE_CONTENT_UPCOMING_AUCTION_NOTE; ?></TD>
			</TR>
			          <? // -------------------------- WHITE BAR --------------------------------------?> 			
			  <TR>
      	<TD WIDTH="125"> 
				<p class="blue"><? print $MSG_AJAX_ADMIN_HOMEPAGE_CONTENT_CLOSED_AUCTION_LABEL; ?></p>
					</TD>
				<TD WIDTH="405">
					<TEXTAREA NAME="closing_auction_note" 
   ROWS="5" COLS="100">
              <? print $closing_auction_note2; ?>
   </textarea><BR><? print $MSG_AJAX_ADMIN_HOMEPAGE_CONTENT_CLOSED_AUCTION_NOTE; ?>
</TD>
			</TR>
			
		 <? // -------------------------- GREY BAR --------------------------------------?>	
			
			<TR>
				<TD WIDTH="125" class="gris">
					<p class="blue"><? print $MSG_AJAX_ADMIN_HOMEPAGE_CONTENT_HELPDESK_LABEL; ?></p>
					</TD>
				<TD WIDTH="405" class="gris">
						<TEXTAREA NAME="helpdesk_info" 
   ROWS="5" COLS="100">
              <? print $helpdesk_info2; ?>
   </textarea><BR><? print $MSG_AJAX_ADMIN_HOMEPAGE_CONTENT_HELPDESK_NOTE; ?></TD>
			</TR>
			
			
					 <? // -------------------------- GREY BAR --------------------------------------?>	
			
			<TR>
				<TD WIDTH="125" class="gris">
					<p class="blue"><? print $MSG_AJAX_ADMIN_HOMEPAGE_CONTENT_ANNOUNCEMENT_LABEL; ?></p>
					</TD>
				<TD WIDTH="405" class="gris">
						<TEXTAREA NAME="header_announcement" 
   ROWS="5" COLS="100">
              <? print $header_announcement2; ?>
   </textarea><BR><? print $MSG_AJAX_ADMIN_HOMEPAGE_CONTENT_ANNOUNCEMENT_NOTE; ?></TD>
			</TR>
			
			         			          <? // -------------------------- WHITE BAR --------------------------------------?> 			
			  <TR>
      	<TD WIDTH="125"> 
				<p class="blue"><? print $MSG_AJAX_ADMIN_HOMEPAGE_CONTENT_WELCOME_LABEL; ?></p>
					</TD>
				<TD WIDTH="405">
					<TEXTAREA NAME="welcome_message" 
   ROWS="5" COLS="100">
              <? print $welcome_message2; ?>
   </textarea><BR><? print $MSG_AJAX_ADMIN_HOMEPAGE_CONTENT_WELCOME_NOTE; ?>
</TD>
			</TR>
			
	
					         			          <? // -------------------------- WHITE BAR --------------------------------------?> 			
			  <TR>
      	<TD WIDTH="125"> 
				<p class="blue"><? print $MSG_AJAX_ADMIN_HOMEPAGE_CONTENT_PAYMENT_LABEL; ?></p>
					</TD>
				<TD WIDTH="405">
					<TEXTAREA NAME="payment_gateway" 
   ROWS="5" COLS="100">
              <? print $payment_gateway2; ?>
   </textarea><BR>
   <? print $MSG_AJAX_ADMIN_HOMEPAGE_CONTENT_PAYMENT_NOTE; ?>
  
</TD>
			</TR>
			
		 <? // -------------------------- GREY BAR --------------------------------------?>	
			
			<TR>
				<TD WIDTH="125" class="gris">
					<p class="blue"><? print $MSG_AJAX_ADMIN_HOMEPAGE_CONTENT_FOOTER_APP_LABEL; ?></p>
					</TD>
				<TD WIDTH="405" class="gris">
						<TEXTAREA NAME="footer_app" 
   ROWS="5" COLS="100">
              <? print $footer_app2; ?>
   </textarea><BR><? print $MSG_AJAX_ADMIN_HOMEPAGE_CONTENT_FOOTER_APP_NOTE; ?></TD>
			</TR>
			
	 <? // -------------------------- GREY BAR --------------------------------------?>	
			
			<TR>
				<TD WIDTH="125" class="gris">
					<p class="blue"><? $MSG_AJAX_ADMIN_HOMEPAGE_CONTENT_COPYRIGHT_LABEL; ?></p>
					</TD>
				<TD WIDTH="405" class="gris">
						<TEXTAREA NAME="footer_copyright" 
   ROWS="5" COLS="100">
              <? print $footer_copyright2; ?>
   </textarea><BR><? print $MSG_AJAX_ADMIN_HOMEPAGE_CONTENT_COPYRIGHT_APP_NOTE; ?></TD>
			</TR>
			
			</TABLE>
		
		  <INPUT TYPE=hidden NAME=update VALUE=1 >
		        <INPUT TYPE="submit" NAME="act" VALUE="<? print $MSG_AJAX_ADMIN_UPDATE_SETTINGS; ?>" class="action">
		 </form>
		
		</TD>
		</TR>
	</TABLE>
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
